﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using DiscoveryLogic.DataServices.DataSources;

namespace DiscoveryLogic.UI.Layouts.Controls
{
    public partial class PageTurnPage : UserControl
    {
        #region Private Fields

            private Statement statement;
            private const int transactionsPerPage = 16;
            private int pageIndex;
            private FrameworkElement control;

        #endregion Private Fields

        #region Public Properties

            public int PageIndex
            {
                get
                {
                    return pageIndex;
                }
                set
                {
                    pageIndex = value;
                }
            }

            public Statement Statement
            {
                get
                {
                    return statement;

                }
                set
                {
                    statement = value;
                }
            }
           
            public FrameworkElement Control
            {
                get
                {
                    return control;
                }
                set
                {
                    control = value;
                }
            }


        #endregion Public Properties

        #region Constructors

            public PageTurnPage()
            {
                InitializeComponent();
                control = Root;
                
                InfoTreatment.MouseLeftButtonDown += new MouseButtonEventHandler(infoTreatment_MouseLeftButtonDown);
            }

        #endregion Constructors

        #region Public Methods

            /// <summary>
            /// When the question mark is clicked on this page (front)
            /// </summary>
            /// <param name="sender"></param>
            /// <param name="e"></param>
            void infoTreatment_MouseLeftButtonDown(object sender, MouseEventArgs e)
            {
                InfoTreatmentRequested(this, e);
            }

        #endregion Public Methods

        #region Public Events

            // Event to signal that the question mark was clicked
            public event EventHandler InfoTreatmentRequested;

        #endregion Public Events
    }
}
